package com.trace.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.trace.app.entity.Product;
import com.trace.app.entity.ResponseResult;


/**
 * (Product)表服务接口
 *
 * @author lionkliu
 * @since 2024-03-17 15:55:10
 */
public interface ProductService extends IService<Product> {
    ResponseResult selectPage(Integer pageNum, Integer pageSize);

    ResponseResult selectOne(Integer id);

    ResponseResult insertOne(Product product);

    ResponseResult deleteById(Integer id);

    ResponseResult updateOne(Product product);

    ResponseResult listProduct();

    ResponseResult getByCateId(Integer id);

    ResponseResult searchByTitle(String title);

    ResponseResult search(Integer pageNum, Integer pageSize, String name);

}

